import { useNavigate } from 'react-router-dom';
import { Button } from 'antd';

export default function Login() {
  const navigate = useNavigate();

  const handleClick = () => {
    navigate('/');
  };

  return (
    <div>
      <Button type="primary" onClick={handleClick}>
        login
      </Button>
    </div>
  );
}
